include ../libs/mixins/form
nav.navbar.navbar-default.navbar-fixed-top
  .navbar-header
    ul.nav.navbar-nav
      li: .btn-group
        button.btn.btn-primary.dropdown-toggle(data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") 基础服务管理平台
          span.caret
        ul.dropdown-menu
          li.text-center(ng-repeat="(key, platform) in session.toPlatforms")
            a(href="{{platform.url}}" target="_blank" ng-show="key == 'login'") {{platform.name}}
            a(href="{{platform.url}}?token={{session.token}}" target="_blank" ng-show="key != 'login'") {{platform.name}}
  .collapse.navbar-collapse
    ul.nav.navbar-nav
      li: a(ui-sref="index" ui-sref-opts="{reload: true}"): img(src="src/libs/images/home.png")
      li(yh-permit="MESSAGE_LIST" ng-class="{active: $state.includes('index.messagePush')}")
        a(ui-sref="index.messagePush.list" ui-sref-opts="{reload: true}") 消息推送管理
    ul.nav.navbar-nav.navbar-right
      //li: span 当前城市:
      //li: +select("session.currentCity", "id")(ng-options="city.id as city.name for city in session.cities" ng-change="changeCity()")
      li: .btn-group
        button.btn.btn-primary.dropdown-toggle(data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") {{session.user.name}}
          span.caret
        ul.dropdown-menu(ng-show="session.passportRole == 'ADMIN'")
          //li.text-center: a(href="javascript:void(0)" ng-click="resetPassword()") 重置密码
          //li.text-center: a(href="javascript:void(0)" ng-click="setAvatar()") 设置头像
          //li.text-center: a(href="javascript:void(0)" ng-click="changeMobile()") 修改手机号
          li.text-center(ng-show="session.passportRole == 'ADMIN'"): a(href="javascript:void(0)" ng-click="toAccountManagePage()") 管理更多账号
      li(ng-show="session.openMsg.avatar"): img.img-rounded(ng-src="{{qiNiuUrl}}/{{session.openMsg.avatar}}-square.small" width="45px")
      li: a(href="javascript:void(0)" ng-click="logout()") 登出
div(ncy-breadcrumb)
.content(ui-view="")
